package MyTest;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        //测试一下一个计算位数的功能
        Scanner scanner = new Scanner(System.in);
        int data = scanner.nextInt();
        int i = 1;
        int count = 1;
        while(i>=0){
            i = (int) (data-Math.pow(10,count));
            count++;
        }
        System.out.println(data+"的位数为："+(count-1));
    }
}
